package com.zhike.service.collect;

import java.util.List;

import com.zhike.common.repository.Collect;

public interface ICollectRepository {

    /**
     * 添加收藏
     * 
     * @param collect
     */
    public Boolean saveCollect(Collect collect);
   
    /**
     * 删除收藏
     * 
     * @param ids
     * @return
     */
    public Boolean deleteCollect(String[] ids);

    /**
     * 查询收藏
     * 
     * @param uid
     * @param collectType
     * @return
     */
    public List<Collect> findCollects(String uid, String collectType);

    /**
     * 查询收藏并更新
     * 
     * @param messageId
     * @return
     */
    public Collect findAndModify(String messageId, String userId);
}
